"bufstream 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"crates-io 0.1.0",
"curl 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
- "docopt 0.6.67 (registry+https://github.com/rust-lang/crates.io-index)",
+ "docopt 0.6.69 (registry+https://github.com/rust-lang/crates.io-index)",
"env_logger 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"filetime 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"flate2 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
[[package]]
name = "docopt"
-version = "0.6.67"
+version = "0.6.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"regex 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)",
assert_that(p.cargo_process("run"), execs().with_status(0));
});
+
+test!(dashes_are_forwarded {
+ let p = project("foo")
+ .file("Cargo.toml", r#"
+ [project]
+ name = "foo"
+ version = "0.0.1"
+ authors = []
+
+ [[bin]]
+ name = "bar"
+ "#)
+ .file("src/main.rs", r#"
+ fn main() {
+ let s: Vec<String> = std::env::args().collect();
+ assert_eq!(s[1], "a");
+ assert_eq!(s[2], "--");
+ assert_eq!(s[3], "b");
+ }
+ "#);
+
+ assert_that(p.cargo_process("run").arg("--").arg("a").arg("--").arg("b"),
+ execs().with_status(0));
+});